package 剑指offer;

import leetcode.day_2020_12_14_12_21.TreeNode;

public class Offer55_JZ38 {
    public int TreeDepth(TreeNode root) {
        if (root == null) {
            return 0;
        }
        return Math.max(TreeDepth(root.left)+1, TreeDepth(root.right)+1);
    }
}
